package see.battle.message;

import see.battle.Const;

public class BulletMessage implements Message {
  /**
   * 
   */
  private static final long serialVersionUID = 4763572342083691054L;
  private int _type = Const.bulletMessageType;
  private int _view;
  private long _time;
  private float _position;
  private long _additionalShipDelay;
  
  /**
   * @param time
   * @param position
   * @param additionalShipDelay
   */
  public BulletMessage(long time, float position, long additionalShipDelay) {
    _time = time;
    _position = position;
    _additionalShipDelay = additionalShipDelay;
  }

  public BulletMessage(long time, float position, long additionalShipDelay, int view) {
	    _time = time;
	    _view = view;
	    _position = position;
	    _additionalShipDelay = additionalShipDelay;
  }
  
  public int type() {
    return _type;
  }

  public long get_time() {
    return _time;
  }

  public float get_position() {
    return _position;
  }

  public long get_additionalShipDelay() {
    return _additionalShipDelay;
  }

  //@Override
  public void updateTime(long diff) {
    _time += diff;
  }
  
  public int get_view() {
	return _view;	  
  }
 
}